@import "/assets/common.less";
/* pages/inspection/detail/detail.less */
.page {
  height: 100vh;
}
.detail-page {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(179.96deg, #FFFFFF 7.67%, #FFECEB 58.76%);
  }
  .navigation-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 94%;
    // margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    z-index: 1000;
    padding: 0 3%;
    box-sizing: border-box;
    .iconfont {
        font-size: 24px;
      }
      .logo{
        width: 245rpx;
        height: 70rpx;
      }
    }

/* 选择文件夹弹窗标题栏按钮区域（与think-tank一致） */
.cascader-title-box{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 导航栏左侧按钮组 */
.nav-left {
    display: flex;
    align-items: center;
    gap: 8px; /* 按钮之间的间距 */
    flex: 1; /* 占据左侧空间 */
}

/* 导航栏中间区域 */
.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* 占据中间空间 */
}

/* 导航栏右侧区域 */
.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1; /* 占据右侧空间 */
}

/* 主内容区域 */
.main-content {
    position: relative;
    width: 100%;
    margin-top: 120rpx; /* 为固定的navigation-bar留出空间 */
}

/* 新增搜索框样式 */
.search-container {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 30rpx 0;
    width: 94%;
    margin: auto;
    margin-top: 0; /* 重置margin-top，因为main-content已经有了 */
  }

/* 返回按钮样式 */
.icon-a-huaban1fuben44 {
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-left: 0; /* 重置左边距 */
}

/* 内容区域容器 */
.content-container {
    position: relative;
    width: 94%;
    margin: auto;
    padding-top: 20rpx;
    min-height: 200px;
}

/* Citation样式 */
.citation-container {
    width: 100%;
    margin-bottom: 20rpx;
    padding: 0 22px;
    box-sizing: border-box;
}

.citation-text {
    font-family: Noto Sans SC;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.5px;
    color: #666666;
    text-align: center;
    word-wrap: break-word;
    text-decoration: underline;
    cursor: pointer;
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
}

.citation-text:active {
    color: #0A4CE9;
}

/* AI标题样式 */
.ai-title-container {
    width: 100%;
    padding: 0 22px;
    box-sizing: border-box;
    margin-bottom: 20rpx;
}

.ai-title-text {
    font-family: Noto Sans SC;
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 1.81px;
    // text-align: center;
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* 作者信息区域样式 */
.author-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20rpx;
    margin-bottom: 20rpx;
    padding: 0 22px;
    box-sizing: border-box;
}

/* 左侧作者信息 */
.author-info-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.author-container {
    display: flex;
    align-items: center;
    margin-bottom: 8rpx;
}

.author-avatar {
    width: 40rpx;
    height: 40rpx;
    border-radius: 50%;
    margin-right: 12rpx;
    background-color: #f0f0f0;
}

.author-name {
    color: #000000;
    font-family: Arial;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
}

/* 发布时间样式 */
.publish-time {
    margin-top: 4rpx;
}

.time-text {
    font-size: 12px;
    color: #787878;
    font-family: Arial;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
}

/* 右侧关注按钮 */
.follow-button-container {
    flex-shrink: 0;
    margin-left: 20rpx;
}

.follow-button {
    width: 82px;
    height: 72rpx;
    border-radius: 28rpx;
    font-family: Noto Sans SC;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    background: transparent;
    color: #3060FC;
    transition: all 0.3s ease;
    border: 1px solid #3060FC;
}

.save-knowledge-button {
  width: 129px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.save-knowledge-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.follow-button.followed {
    background: #D9D9D9;
    color: #787878;
    box-shadow: none;
    border: 1px solid #D9D9D9;
}

.follow-button:active {
    transform: scale(0.95);
    box-shadow: 0 1rpx 4rpx rgba(255, 107, 107, 0.2);
}


.icon-a-huaban1fuben44:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.publish-button {
    /* 文字样式 */
    color: rgba(120, 120, 120, 1); /* 灰色文字 */
    font-family: Noto Sans SC;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    white-space: nowrap;
    /* 按钮边框 */
    border: 0.75px solid #B9B9B9;
    background-color: transparent;
    max-width: 57.75px; /* 固定宽度 */
    height: 72rpx;
    border-radius: 16.5px; /* 圆角 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 282px !important;
  }

/* 动态divider样式 */
.dynamic-divider {
    margin-top: 30rpx;
    width: 94%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Content内容样式 */
.content-section {
    width: 94%;
    margin: 30rpx auto 0;
    padding: 0 22px;
    box-sizing: border-box;
}

.content-text {
    font-family: Noto Sans SC;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #333333;
    letter-spacing: 0.5px;
    text-align: justify;
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 工具栏样式 */
.toolbar-container {
    width: 94%;
    margin: 40rpx auto 0;
    padding: 20rpx 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    // background: rgba(255, 255, 255, 0.8);
    border-radius: 16rpx;
    // box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}

.toolbar-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 16rpx 24rpx;
    border-radius: 12rpx;
    transition: all 0.2s ease;
    cursor: pointer;
    gap: 8rpx;
}

.toolbar-item:active {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(0.95);
}

.toolbar-item .iconfont {
    font-size: 58rpx;
    color: #666666;
}

.toolbar-count {
    font-family: Noto Sans SC;
    font-weight: 500;
    font-size: 10px;
    line-height: 14px;
    color: #787878;
    // background: rgba(255, 107, 107, 0.1);
    padding: 2rpx 6rpx;
    border-radius: 8rpx;
    min-width: 16rpx;
    text-align: center;
}

/* 评论区域样式 */
.comment-section {
    width: 94%;
    margin: 30rpx auto 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16rpx;
    padding: 20rpx;
    // box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}

/* 评论输入框样式 */
.comment-input-container {
    display: flex;
    align-items: center;
    margin-bottom: 20rpx;
    padding: 16rpx;
    background: #FFFFFF;
    border-radius: 12rpx;
    width: 350px;
    height: 80px;
    border: 1px solid #B9B9B9;
    box-sizing: border-box;
    margin-left: auto; /* 自动左边距 */
    margin-right: auto; /* 自动右边距 */
}

.comment-input {
    flex: 1;
    font-family: Noto Sans SC;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #787878;
    padding: 8rpx 0;
    background: transparent;
    border: none;
    outline: none;
}

/* 评论操作行样式 */
.comment-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20rpx;
    padding: 0 4rpx;
}

.comment-info-left {
    display: flex;
    align-items: center;
    gap: 8rpx;
}

.comment-icon {
    font-size: 58rpx;
    color: #666666;
}

.comment-count {
    font-family: Noto Sans SC;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #666666;
    background: transparent;
    padding: 2rpx 6rpx;
    border-radius: 6rpx;
    min-width: 16rpx;
    text-align: center;
}

.comment-submit-container {
    display: flex;
    align-items: center;
}

.comment-submit {
    font-family: Noto Sans SC;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    padding: 8rpx 16rpx;
    margin-left: 16rpx;
    border-radius: 8rpx;
    background: #3060FC;
    cursor: pointer;
}

.comment-submit:active {
    background: #3060FC;
}

/* 评论列表样式 */
.comment-list {
    max-height: 400rpx;
    overflow-y: auto;
}

.comment-item {
    padding: 16rpx 0;
    border-bottom: 1rpx solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8rpx;
}

.comment-avatar {
    width: 32rpx;
    height: 32rpx;
    border-radius: 50%;
    margin-right: 12rpx;
    background-color: #f0f0f0;
}

.comment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.comment-actions {
    margin-left: auto;
}

.delete-comment {
    font-family: Noto Sans SC;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #5C83E7;
    padding: 4rpx 8rpx;
    border-radius: 6rpx;
    background:transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-comment:active {
    background: rgba(255, 107, 107, 0.2);
    transform: scale(0.95);
}

.comment-username {
    font-family: Noto Sans SC;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #333333;
    margin-bottom: 2rpx;
}

.comment-time {
    font-family: Noto Sans SC;
    font-weight: 400;
    font-size: 10px;
    line-height: 14px;
    color: #999999;
}

.comment-content {
    font-family: Noto Sans SC;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #333333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-left: 44rpx;
}

/* 暂无评论样式 */
.no-comment {
    text-align: center;
    padding: 40rpx 0;
}

.no-comment-text {
    font-family: Noto Sans SC;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #999999;
}

/* 个人中心侧边栏样式 */
.pcenter-sider {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
  }

/* 标签展示区域样式 */
.tag-display-section {
    margin-top: 16rpx;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12rpx;
}

.current-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8rpx;
}

.tag-item {
    padding: 6rpx 12rpx;
    background: #f0f0f0;
    border-radius: 16rpx;
    font-size: 24rpx;
    color: #666;
}

.add-tag-btn {
    display: flex;
    align-items: center;
    padding: 6rpx 12rpx;
    border: 1px dashed #0A4CE9;
    border-radius: 16rpx;
    color: #0A4CE9;
    font-size: 24rpx;
    gap: 4rpx;
}

/* 标签选择弹窗样式 */
.tag-selector-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.tag-selector-modal {
    width: 80%;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12rpx;
}

.selectable-tag-item {
    padding: 12rpx 24rpx;
    border: 1px solid #ddd;
    border-radius: 24rpx;
    font-size: 28rpx;
    color: #666;
    background: white;
}

.selectable-tag-item.selected {
    background: #0A4CE9;
    color: white;
    border-color: #0A4CE9;
}

.modal-actions {
    display: flex;
    padding: 20px;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
}

.cancel-btn, .confirm-btn {
    flex: 1;
    height: 44px;
    border-radius: 8px;
    font-size: 16px;
    border: none;
}

.cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.confirm-btn {
    background: #0A4CE9;
    color: white;
}

.confirm-btn[disabled] {
    background: #ccc;
}

/* 猜你喜欢公共区域 */
.common-section {
  width: 94%;
  margin: 40rpx auto 60rpx;
  padding: 0 0 20rpx;
  box-sizing: border-box;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 8rpx;
  margin-bottom: 20rpx;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10rpx;
}

.section-title-icon {
  width: 32rpx;
  height: 32rpx;
}

.section-title {
  font-family: 'Noto Sans SC';
  font-weight: 500;
  font-style: normal;
  font-size: 28rpx;
  line-height: 100%;
  letter-spacing: 0.68px;
  color: #5C83E7;
}

.section-desc {
  font-size: 24rpx;
  color: #787878;
}

.similar-loading,
.similar-empty {
  width: 100%;
  text-align: center;
  padding: 40rpx 0;
  color: #666;
  font-size: 28rpx;
}

.waterfall-container {
  display: flex;
  gap: 16rpx;
}

.waterfall-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16rpx;
}

.content-card {
  width: 100%;
  border-radius: 8rpx;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 100%;
  height: auto;
  display: block;
}

.card-info {
  padding: 20rpx;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 28rpx;
  color: #333;
  line-height: 40rpx;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-bottom: 24rpx;
  word-break: break-word;
}

.card-footer {
  display: flex;
  align-items: center;
  margin-top: auto;
  gap: 10rpx;
}

.avatar {
  width: 40rpx;
  height: 40rpx;
  border-radius: 50%;
  flex-shrink: 0;
}

.username {
  flex: 1;
  font-size: 24rpx;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.likes {
  display: flex;
  align-items: center;
  gap: 6rpx;
  font-size: 24rpx;
  color: #999;
}

.likes .iconfont {
  font-size: 28rpx;
  color: #FF744E;
}